#pragma once
#ifndef Input_h__
#define Input_h__

#include <allegro5/allegro.h>

#include "Geo.h"

enum
{
	KEY_UP = ALLEGRO_KEY_UP,
	KEY_DOWN = ALLEGRO_KEY_DOWN,
	KEY_LEFT = ALLEGRO_KEY_LEFT,
	KEY_RIGHT = ALLEGRO_KEY_RIGHT,

	KEY_A = ALLEGRO_KEY_Z,
	KEY_B = ALLEGRO_KEY_X,
	KEY_X = ALLEGRO_KEY_A,
	KEY_Y = ALLEGRO_KEY_S,

	KEY_R = ALLEGRO_KEY_W,
	KEY_L = ALLEGRO_KEY_Q,

	KEY_SELECT = ALLEGRO_KEY_LSHIFT,
	KEY_START = ALLEGRO_KEY_ENTER,

	MOUSE_LEFT = ALLEGRO_KEY_UNKNOWN+1,
	MOUSE_RIGHT,
	MOUSE_MIDDLE,
};

bool WasPressed(int aKey);
bool WasReleased(int aKey);
bool IsPressed(int aKey);

Vec GetMousePos();

void SetVibration(int left, int right);

extern Vec JoystickStick[2];

#endif // Input_h__